<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>虚拟仿真实验教学项目管理平台</title>
		
		<link href="../static/css/bootstrap-be665bb9f0f7fc89f515ad.css" rel="stylesheet">
		<link href="../static/css/app-bbc7b0797d7724c5400c2795d973.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="../static/css/font-awesome-d747d5b755b138af0a6.css">
		<script src="../static/js/jquery.min-2f6b11a7e914718e02904.js"></script>
		<script type="text/javascript" src="../static/js/base64-b2c3d8bd2c1229c7339744dfd.js" ></script>
		<script type="text/javascript" src="../static/js/jsbn-0fbf616a8a8b7a31e5694866677.js" ></script>
		<script type="text/javascript" src="../static/js/prng4-e5918399f7a38295d617eb78cc.js" ></script>
		<script type="text/javascript" src="../static/js/rng-015302b7d458a2d1804caceba805.js" ></script>
		<script type="text/javascript" src="../static/js/rsa-850577550a13eb3b22c72912b3a6.js" ></script>
	</head>

	<body>
		<div id="mainWrapper">
			
			<div class="login-container">
				<div class="logo">
					<img src="../static/picture/logo.png">
				</div>
				<div class="login-card">
					<div class="login-form">
						<form name="loginForm" id="loginForm" action="/login" method="post" class="form-horizontal">
							
							<div class="input-group input-sm">
								<label class="input-group-addon" for="username"><i class="fa fa-user"></i></label>
								<input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名/手机/邮箱" required="">
							</div>
							<div class="input-group input-sm">
								<label class="input-group-addon" for="password"><i class="fa fa-lock"></i></label> 
								<input type="password" class="form-control" id="password" name="password" autocomplete="off" placeholder="请输入密码" required="">
								<input type="hidden" id="ciphertext" name="ciphertext">
							</div>
							<div class="input-group input-sm">
                              <div class="checkbox">
                                <label><input type="checkbox" id="rememberme" name="remember-me">记住我</label>  
                              </div>
							</div>
							<input type="hidden" name="_csrf" value="3f891156-1b99-4526-9ca4-c2f10ee5aa58">
								
							<div class="form-actions">
								<input type="submit" class="btn btn-block btn-primary btn-default" value="登录">
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
<div id="tmppassword">R0jwOPWrQDw/Wp2e/stf/igQwVd6uvPFclxyL5zB02qAOMa0pQM76IaXoo02JQfEqlHB/Org5wtlACe5kUuJF0t5pwbCYyRTZjYgxOG0RDH0RqEdtw4zGTrjrbbpWaokbSgBqZvQENo2n32NhThnpOSAh5JYZRtS6lsACaxjjzg=</div>
<script type="text/javascript" src="../static/js/jquery.min-397754ba49e9e0cf4e7c1.js"></script>
<script>
function reloadImg(){
    $("#validateImg").attr("src",$("#validateImg").attr("src").split("?")[0]+"?"+new Date().getTime())
}

window.onload=function(){
	document.loginForm.onsubmit = function(){
		rsa();
		return true;
	}
}

function rsa(){
    var rsaKey = new RSAKey();
    rsaKey.setPublic(b64tohex("AKoUc2af+odmxQ/86+VFXnHx+WjjaQ4iirvPC2QExAy1nCrlDf06ys53qfcNCT06hnuQQfsdj/lFmHarhe2RCeKFYBKoT4b04AaMxfUAVHinKOjDXRTNx7YewcE0hqwPEQeZNCCEijLR69bqcY9EQjye1JujHv7bqMdbfQT6oxMV"), b64tohex("AQAB"));
    var enPassword = hex2b64(rsaKey.encrypt($("#password").val()));
    $("#password").val('');
    $("#ciphertext").val(enPassword);
}
</script>
	</body>
</html>
